package com.crm.business.crm.service;

import com.crm.business.servlet.BaseService;
import com.crm.common.crm.entity.BO.CrmRoiPutinPageBO;
import com.crm.common.crm.entity.PO.CrmRoiStatis;
import com.crm.common.crm.entity.VO.CrmRoiStatisVO;
import com.crm.common.ka.core.entity.BasePage;

import java.util.List;
import java.util.Map;


/**
 * <p>
 * 投放消耗表 服务类
 * </p>
 *
 * @author zhangzhiwei
 * @since 2020-05-21
 */
public interface ICrmRoiStatisService extends BaseService<CrmRoiStatis> {

    /**
     * 查询ROI统计
     * @param crmRoiPutinPageBO
     * @return
     */
    public BasePage<CrmRoiStatis> queryAllRoiStatis(CrmRoiPutinPageBO crmRoiPutinPageBO);

    /**
     * ROI统计明细列表
     * @param crmRoiPutinPageBO
     * @return
     */
    public BasePage<CrmRoiStatisVO> queryPutinStatisForSource(CrmRoiPutinPageBO crmRoiPutinPageBO);

    public void statisRoi();

    public void statisRoiJob();

    /**
     * ROI月度统计
     * @param crmRoiPutinPageBO
     */
    public Map<String, Object> roiStatisForMonth(CrmRoiPutinPageBO crmRoiPutinPageBO);

    /**
     * 客单价月度统计
     * @param crmRoiPutinPageBO
     * @return
     */
    public Map<String, Object> priceStatisForMonth(CrmRoiPutinPageBO crmRoiPutinPageBO);

    /**
     * 预计收益统计
     */
    public Map<String, Object> projectedRevenueStatis(CrmRoiPutinPageBO crmRoiPutinPageBO);

}
